package com.xd.center.api.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "周边配套信息")
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper=false)
public class SurroundingFacilities implements Serializable {

  private static final long serialVersionUID = -1;

  @ApiModelProperty(value = "公交")
  private List<SurroundingFacilitiesInfo> bus;
  @ApiModelProperty(value = "地铁")
  private List<SurroundingFacilitiesInfo> subway;
  @ApiModelProperty(value = "学校")
  private List<SurroundingFacilitiesInfo> school;
  @ApiModelProperty(value = "医院")
  private List<SurroundingFacilitiesInfo> hospital;
  @ApiModelProperty(value = "餐饮")
  private List<SurroundingFacilitiesInfo> restaurant;
  @ApiModelProperty(value = "电影院")
  private List<SurroundingFacilitiesInfo> cinema;

  @Data
  @ApiModel(value = "周边配套信息")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  class SurroundingFacilitiesInfo implements Serializable {
    @ApiModelProperty(value = "地区ID")
    private Long areaId;
    @ApiModelProperty(value = "周边标签")
    private String label;
    @ApiModelProperty(value = "地址")
    private String address;
    private Integer poiId;
    @ApiModelProperty(value = "周边名称")
    private String poiName;
    @ApiModelProperty(value = "周边所有名称")
    private String fullName;
    @ApiModelProperty(value = "街道名称")
    private String streetName;
    @ApiModelProperty(value = "街道")
    private String streetNo;
    @ApiModelProperty(value = "类型")
    private Integer poiType;
    @ApiModelProperty(value = "类型名称")
    private String poiTypeName;

    private String poiMinx;
    private String poiMiny;
  }
}
